import { createStore } from 'vuex'
import state from './state'
import mutations from './mutations'
import type { IObj } from '@/interface'

const debug = import.meta.env.NODE_ENV !== 'production'
export const originState: IObj = { ...state }
export default createStore({
  state,
  mutations,
  strict: debug,
})
